package com.wanmait.gohome.pojo;

import java.io.Serializable;
import java.util.List;

public class Area implements Serializable {
    /**
	* 地区Id
	*/
    private Integer areaId;

    /**
	* 地区编码
	*/
    private String areaCode;

    /**
	* 地区名
	*/
    private String areaName;

    /**
	* 地区级别（1:省份province,2:市city,3:区县district,4:街道street）
	*/
    private Byte level;

    /**
	* 城市编码
	*/
    private String cityCode;

    /**
	* 城市中心点（即：经纬度坐标）
	*/
    private String center;

    /**
	* 地区父节点
	*/
    private Integer parentId;

    /**
     * 子类（市）
     */
    private List<Area> areaList;

    public List<Area> getAreaList() {
        return areaList;
    }

    public void setAreaList(List<Area> areaList) {
        this.areaList = areaList;
    }

    private static final long serialVersionUID = 1L;

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public Byte getLevel() {
        return level;
    }

    public void setLevel(Byte level) {
        this.level = level;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getCenter() {
        return center;
    }

    public void setCenter(String center) {
        this.center = center;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", areaId=").append(areaId);
        sb.append(", areaCode=").append(areaCode);
        sb.append(", areaName=").append(areaName);
        sb.append(", level=").append(level);
        sb.append(", cityCode=").append(cityCode);
        sb.append(", center=").append(center);
        sb.append(", parentId=").append(parentId);
        sb.append("]");
        return sb.toString();
    }
}